Component({
  properties: {
    barList: {
      type: Array,
      value: [{
        name: "全部",
        value: ''
      }, {
        name: "待付款",
        value: 'WAITING_PAYMENT'
      }, {
        name: "已付款",
        value: 'PAID'
        }, {
          name: "已发货",
          value: 'DELIVERYING'
        }, {
        name: "已完成",
        value: 'FINISHED'
      }, {
        name: "已取消",
        value: 'CANCELED'
      }, ]
    },
    activeName:{
      type:String,
      value:''
    }
  },
  options: {
    multipleSlots: true
  },
  data: {

  }, // 私有数据，可用于模版渲染
  methods:{
    switchTab(e){
      const name = e.currentTarget.dataset.name;
      this.triggerEvent('activeNameChange', name)
    }
  }

})